package com.xx.entity;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

public class Category implements Serializable {
    @Serial
    private static final long serialVersionUID = -3540160794980792279L;

    //id
    private int category_id;
    //类别
    private String name;

    private List<Book> book;

    public int getCategory_id() {
        return category_id;
    }

    public void setCategory_id(int category_id) {
        this.category_id = category_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    //详情
    private String description;

    public List<Book> getBook() {
        return book;
    }

    public void setBook(List<Book> book) {
        this.book = book;
    }

    @Override
    public String toString() {
        return "Category{" +
                "category_id=" + category_id +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                '}';
    }
}
